package com.sihan.framework.etm.dto;

import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import io.swagger.annotations.ApiModelProperty;

@Data
public class OrgDTO implements Serializable {

  private static final long serialVersionUID = 8825168359582703868L;

  @ApiModelProperty(value = "单位Id")
  private String id;
  
  @NotNull
  @ApiModelProperty(value = "单位父Id")
  private String parentId;

  @Length(min = 1, max = 20)
  @ApiModelProperty(value = "单位名称")
  private String name;

  @ApiModelProperty(value = "是否是部门0:否1:是")
  private Short isDep;

  @ApiModelProperty(value = "单位负责人")
  private String leadUser;

  @ApiModelProperty(value = "负责人电话")
  private String phone;

  @ApiModelProperty(value = "单位描述")
  private String remarks;
  
  @ApiModelProperty(value = "单位地址")
  private String address;


}
